
import request from '@/utils/request';

// 查询列表
export async function queryPerson(params) {
  return request('/b/filespacesetting/queryPageList', {
    method: 'POST',
    data: params,
  });
}
// 新增
export async function addPerson(params) {
  return request('/b/filespacesetting/add', {
    method: 'POST',
    data: params,
  });
}

// 删除
export async function removePerson(params) {
  return request('/b/filespacesetting/delete', {
    method: 'POST',
    data: params,
  });
}

// 修改
export async function updatePerson(params) {
  return request('/b/filespacesetting/update', {
    method: 'POST',
    data: params,
  });
}

// 组织树
export async function queryOrgUserTree(params) {
  return request('/b/filespacesetting/queryOrgTree', {
    method: 'POST',
    data: params,
  });
}

// 组织树查询人
export async function queryUserByOrgId(params) {
  return request('/b/filespacesetting/queryUserByOrgId', {
    method: 'POST',
    data: params,
  });
}
